package cn.sherer.beans.douyin;

/**
 * 抖音订单返回结果
 */
public class DyOrderResult extends DyResult<String> {
    private String out_order_no;
    private String order_id;
    private DyPaymentInfo payment_info;
    private DyCpsInfo cps_info;

    public DyOrderResult() {
    }

    public DyOrderResult(int err_no, String err_tips) {
        super(err_no, err_tips);
    }

    public String getOut_order_no() {
        return out_order_no;
    }

    public void setOut_order_no(String out_order_no) {
        this.out_order_no = out_order_no;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public DyPaymentInfo getPayment_info() {
        return payment_info == null ? new DyPaymentInfo() : payment_info;
    }

    public void setPayment_info(DyPaymentInfo payment_info) {
        this.payment_info = payment_info;
    }

    public DyCpsInfo getCps_info() {
        return cps_info == null ? new DyCpsInfo() : cps_info;
    }

    public void setCps_info(DyCpsInfo cps_info) {
        this.cps_info = cps_info;
    }

    @Override
    public String toString() {
        return "DyOrderResult{" + "out_order_no=" + out_order_no + ", order_id=" + order_id + ", payment_info=" + payment_info + ", cps_info=" + cps_info + "}";
    }
}
